package model

import "gorm.io/gorm"

type Vid struct {
	gorm.Model
	Title   string `gorm:"type:varchar(50)"`
	Author  string `gorm:"type:varchar(50)"`
	LikeNum string `gorm:"type:varchar(50)"`
	Time    string `gorm:"type:varchar(50)"`
	Commit  string `gorm:"type:varchar(50)"`
}

type Car struct {
	gorm.Model
	Name    string `gorm:"type:varchar(50)"`
	Address string `gorm:"type:varchar(50)"`
	Price   string `gorm:"type:varchar(50)"`
}

type Order struct {
	gorm.Model
	Cid        int    `gorm:"type:int"`
	OrderPrice string `gorm:"type:varchar(50)"`
	OrderTime  string `gorm:"type:varchar(50)"`
}
type CarOrder struct {
	Name       string
	Address    string
	Price      string
	Cid        int
	OrderPrice string
	OrderTime  string
}
